<template>
  <div class="flex-col page">
    <!-- <div class="flex-col header">
      <div class="flex-row mt-27">
        <span class="font text ml-105-5">推广人列表</span>
      </div>
    </div> -->
    <c-title :hide="false"
             text="推广人列表"></c-title>
    <div class="flex-col flex-1 group">
      <div class="flex-col section">
        <div class="flex-col section_2">
          <span class="self-center font_2">推广人数</span>
          <div class="flex-row justify-center items-baseline self-stretch group_2">
            <span class="text_2">{{ totalPeople }}</span>
            <span class="ml-4 font_2">人</span>
          </div>
          <div class="flex-row justify-between equal-division">
            <div class="flex-col items-center" style="display:flex;flex:1;">
              <span class="font_2">A区业绩</span>
              <div class="font text_3 mt-8-5" style="width:90%;word-break:break-all;">{{ aYeji }}</div>
            </div>
            <img class="horiz-divider" src="https://ide.code.fun/api/image?token=656eef4928456c0011681c9a&name=f843548b18aa5f1e277214318f1bc7d5.png" />
            <div class="flex-col items-center" style="display:flex;flex:1;">
              <span class="font_2">B区业绩</span>
              <div class="font text_4 mt-8-5" style="width:90%;word-break:break-all;">{{ bYeji }}</div>
            </div>
          </div>
        </div>
        <div class="flex-row group_3 mt-23">
          <!-- <div v-for="(item,index) in tabsList" :key="index">
          {{ item.title }}
          </div> -->
          <div class="flex-row self-stretch" @click="changeTabs(item,index)" style="margin-right: 20px" v-for="(item,index) in tabsList" :key="index">
            <span class="font_3 text_5"  :class="[currentTabs == index?'active':'green']" v-if="index == 0">{{ item.title }}({{ memberListA.length }})</span>
            <span class="font_3 text_5"  :class="[currentTabs == index?'active':'green']" v-if="index == 1">{{ item.title }}({{ memberListB.length }})</span>
          </div>
          <!-- <img class="self-start image_3 mt-2-5" src="https://ide.code.fun/api/image?token=656eef4928456c0011681c9a&name=7b5d7da257b1623c6ec5a1a94234f5d2.png" /> -->
        </div>
      </div>
      <div class="flex-col list mt-15" v-if="currentTabs == 0">
        <div class="flex-row justify-between items-center mt-10 list-item" v-for="(item, index) in memberListA" :key="index">
          <div class="flex-row items-center">
            <img class="image_4" :src="'https://shops.cg500.com/'+item.my_avatar" />
            <div class="flex-col items-start group_4 ml-9">
              <span class="font_4">{{ item.my_mobile }}</span>
              <span class="font_6 text_7 mt-11-5">{{ item.time }}</span>
            </div>
          </div>
          <div class="flex-col items-center">
            <span class="font_5">节点人：{{ item.sj_mobile }}</span>
            <span class="mt-8 font_5">推广人：{{ item.tj_mobile }}</span>
            <span class="mt-8 font_5 flex-row justify-start" style="width: 100%">区&nbsp;&nbsp;&nbsp;域：{{ item.num == 1 ? 'A区' : 'B区' }}</span>
          </div>
        </div>
      </div>
      <div class="flex-col list mt-15" v-if="currentTabs == 1">
        <div class="flex-row justify-between items-center mt-10 list-item" v-for="(item, index) in memberListB" :key="index">
          <div class="flex-row items-center">
            <img class="image_4" :src="'https://shops.cg500.com/'+item.my_avatar" />
            <div class="flex-col items-start group_4 ml-9">
              <span class="font_4">{{ item.my_mobile }}</span>
              <span class="font_6 text_7 mt-11-5">{{ item.time }}</span>
            </div>
          </div>
          <div class="flex-col items-center">
            <span class="font_5">节点人：{{ item.sj_mobile }}</span>
            <span class="mt-8 font_5">推广人：{{ item.tj_mobile }}</span>
            <span class="mt-8 font_5">区域：{{ item.num == 1 ? 'A区' : 'B区' }}</span>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import recommendcontroller from "./recommendcontroller";
export default recommendcontroller;
</script>
<style lang="scss" rel="stylesheet/scss" scoped>
.active {
		position: relative;
	}

	.active::after {
		/* color: #3f9afe; */
		content: '';
		position: absolute;
		left: 50%;
		bottom: -15px;
		// left: 50%;
		transform: translate(-50%, -50%);
		background-image: url('../../../assets/images/recommand/active.png');
		background-size: 100% 100%;
		width: 17px;
		height: 5px;
	}
.mt-27 {
  margin-top: 1.69rem;
}
.ml-105-5 {
  margin-left: 6.59rem;
}
.mt-8-5 {
  margin-top: 0.53rem;
}
.mt-23 {
  margin-top: 1.44rem;
}
.ml-20-5 {
  margin-left: 1.28rem;
}
.mt-2-5 {
  margin-top: 0.16rem;
}
.mt-15 {
  margin-top: 0.94rem;
}
.ml-9 {
  margin-left: 0.56rem;
}
.mt-11-5 {
  margin-top: 0.72rem;
}
.page {
  background-color: #f8f8f8;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
}
.header {
  padding: 0.94rem 0.88rem 0.53rem 1.69rem;
  background-color: #ffffff;
  height: 5rem;
}
.image {
  margin-left: 0.41rem;
  width: 20.47rem;
  height: 0.75rem;
}
.image_2 {
  width: 0.59rem;
  height: 1.09rem;
}
.font {
  font-size: 1.13rem;
  font-family: PingFang SC;
  line-height: 0.84rem;
  font-weight: 700;
  color: #ffffff;
}
.text {
  color: #000000;
  line-height: 1.09rem;
}
.group {
  padding-bottom: 4.47rem;
  overflow-y: auto;
}
.section {
  padding: 0.75rem 0.94rem 0;
  background-color: #ffffff;
}
.section_2 {
  padding: 1.38rem 0.41rem 1.38rem 0.44rem;
  filter: drop-shadow(0.096rem 0.3rem 0.46rem #2961f04d);
  background-image: url("../../../assets/images/recommand/top_bg.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.group_2 {
  margin-top: 0.75rem;
}
.text_2 {
  color: #ffffff;
  font-size: 1.88rem;
  font-family: PingFang SC;
  font-weight: 700;
  line-height: 1.44rem;
}
.font_2 {
  font-size: 0.81rem;
  font-family: PingFang SC;
  line-height: 0.78rem;
  font-weight: 700;
  color: #ffffff;
}
.equal-division {
  align-self: stretch;
  margin-top: 0.91rem;
}
.text_3 {
  line-height: 1.28rem;
}
.horiz-divider {
  width: 0.063rem;
  height: 2.09rem;
}
.text_4 {
  line-height: 1.28rem;
}
.group_3 {
  padding: 0.063rem;
  padding-bottom: 18px;
}
.font_3 {
  font-size: 0.94rem;
  font-family: PingFang SC;
  line-height: 0.91rem;
  font-weight: 700;
}
.text_5 {
  color: #222222;
}
.text_6 {
  color: #274c9d;
}
.image_3 {
  margin-left: 6.47rem;
  width: 1.09rem;
  height: 0.25rem;
}
.list {
  padding: 0 0.94rem;
}
.list-item {
  padding: 1.5rem 1rem 1.38rem;
  background-color: #ffffff;
  border-radius: 0.75rem;
}
.list-item:first-child {
  margin-top: 0;
}
.image_4 {
  width: 1.94rem;
  height: 1.94rem;
  border-radius: 50%;
}
.group_4 {
  margin-top: 0.094rem;
}
.font_4 {
  font-size: 0.94rem;
  font-family: PingFang SC;
  line-height: 0.84rem;
  font-weight: 500;
  color: #222222;
}
.font_6 {
  font-size: 0.75rem;
  font-family: PingFang SC;
  line-height: 0.59rem;
  font-weight: 500;
  color: #999999;
}
.text_7 {
  margin-left: 0.13rem;
}
.font_5 {
  font-size: 0.81rem;
  font-family: PingFang SC;
  line-height: 0.78rem;
  font-weight: 500;
  color: #222222;
}
/************************************************************
** 请将全局样式拷贝到项目的全局 CSS 文件或者当前页面的顶部 **
** 否则页面将无法正常显示                                  **
************************************************************/

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Microsoft Yahei", sans-serif;
}

body * {
  box-sizing: border-box;
  flex-shrink: 0;
}

#app {
  width: 100vw;
  height: 100vh;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.justify-start {
  justify-content: flex-start;
}

.justify-end {
  justify-content: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.justify-evenly {
  justify-content: space-evenly;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.items-center {
  align-items: center;
}

.items-baseline {
  align-items: baseline;
}

.items-stretch {
  align-items: stretch;
}

.self-start {
  align-self: flex-start;
}

.self-end {
  align-self: flex-end;
}

.self-center {
  align-self: center;
}

.self-baseline {
  align-self: baseline;
}

.self-stretch {
  align-self: stretch;
}

.flex-1 {
  flex: 1 1 0%;
}

.flex-auto {
  flex: 1 1 auto;
}

.grow {
  flex-grow: 1;
}

.grow-0 {
  flex-grow: 0;
}

.shrink {
  flex-shrink: 1;
}

.shrink-0 {
  flex-shrink: 0;
}

.relative {
  position: relative;
}

.ml-2 {
  margin-left: 0.13rem;
}

.mt-2 {
  margin-top: 0.13rem;
}

.ml-4 {
  margin-left: 0.25rem;
}

.mt-4 {
  margin-top: 0.25rem;
}

.ml-6 {
  margin-left: 0.38rem;
}

.mt-6 {
  margin-top: 0.38rem;
}

.ml-8 {
  margin-left: 0.5rem;
}

.mt-8 {
  margin-top: 0.5rem;
}

.ml-10 {
  margin-left: 0.63rem;
}

.mt-10 {
  margin-top: 0.63rem;
}

.ml-12 {
  margin-left: 0.75rem;
}

.mt-12 {
  margin-top: 0.75rem;
}

.ml-14 {
  margin-left: 0.88rem;
}

.mt-14 {
  margin-top: 0.88rem;
}

.ml-16 {
  margin-left: 1rem;
}

.mt-16 {
  margin-top: 1rem;
}

.ml-18 {
  margin-left: 1.13rem;
}

.mt-18 {
  margin-top: 1.13rem;
}

.ml-20 {
  margin-left: 1.25rem;
}

.mt-20 {
  margin-top: 1.25rem;
}

.ml-22 {
  margin-left: 1.38rem;
}

.mt-22 {
  margin-top: 1.38rem;
}

.ml-24 {
  margin-left: 1.5rem;
}

.mt-24 {
  margin-top: 1.5rem;
}

.ml-26 {
  margin-left: 1.63rem;
}

.mt-26 {
  margin-top: 1.63rem;
}

.ml-28 {
  margin-left: 1.75rem;
}

.mt-28 {
  margin-top: 1.75rem;
}

.ml-30 {
  margin-left: 1.88rem;
}

.mt-30 {
  margin-top: 1.88rem;
}

.ml-32 {
  margin-left: 2rem;
}

.mt-32 {
  margin-top: 2rem;
}

.ml-34 {
  margin-left: 2.13rem;
}

.mt-34 {
  margin-top: 2.13rem;
}

.ml-36 {
  margin-left: 2.25rem;
}

.mt-36 {
  margin-top: 2.25rem;
}

.ml-38 {
  margin-left: 2.38rem;
}

.mt-38 {
  margin-top: 2.38rem;
}

.ml-40 {
  margin-left: 2.5rem;
}

.mt-40 {
  margin-top: 2.5rem;
}

.ml-42 {
  margin-left: 2.63rem;
}

.mt-42 {
  margin-top: 2.63rem;
}

.ml-44 {
  margin-left: 2.75rem;
}

.mt-44 {
  margin-top: 2.75rem;
}

.ml-46 {
  margin-left: 2.88rem;
}

.mt-46 {
  margin-top: 2.88rem;
}

.ml-48 {
  margin-left: 3rem;
}

.mt-48 {
  margin-top: 3rem;
}

.ml-50 {
  margin-left: 3.13rem;
}

.mt-50 {
  margin-top: 3.13rem;
}

.ml-52 {
  margin-left: 3.25rem;
}

.mt-52 {
  margin-top: 3.25rem;
}

.ml-54 {
  margin-left: 3.38rem;
}

.mt-54 {
  margin-top: 3.38rem;
}

.ml-56 {
  margin-left: 3.5rem;
}

.mt-56 {
  margin-top: 3.5rem;
}

.ml-58 {
  margin-left: 3.63rem;
}

.mt-58 {
  margin-top: 3.63rem;
}

.ml-60 {
  margin-left: 3.75rem;
}

.mt-60 {
  margin-top: 3.75rem;
}

.ml-62 {
  margin-left: 3.88rem;
}

.mt-62 {
  margin-top: 3.88rem;
}

.ml-64 {
  margin-left: 4rem;
}

.mt-64 {
  margin-top: 4rem;
}

.ml-66 {
  margin-left: 4.13rem;
}

.mt-66 {
  margin-top: 4.13rem;
}

.ml-68 {
  margin-left: 4.25rem;
}

.mt-68 {
  margin-top: 4.25rem;
}

.ml-70 {
  margin-left: 4.38rem;
}

.mt-70 {
  margin-top: 4.38rem;
}

.ml-72 {
  margin-left: 4.5rem;
}

.mt-72 {
  margin-top: 4.5rem;
}

.ml-74 {
  margin-left: 4.63rem;
}

.mt-74 {
  margin-top: 4.63rem;
}

.ml-76 {
  margin-left: 4.75rem;
}

.mt-76 {
  margin-top: 4.75rem;
}

.ml-78 {
  margin-left: 4.88rem;
}

.mt-78 {
  margin-top: 4.88rem;
}

.ml-80 {
  margin-left: 5rem;
}

.mt-80 {
  margin-top: 5rem;
}

.ml-82 {
  margin-left: 5.13rem;
}

.mt-82 {
  margin-top: 5.13rem;
}

.ml-84 {
  margin-left: 5.25rem;
}

.mt-84 {
  margin-top: 5.25rem;
}

.ml-86 {
  margin-left: 5.38rem;
}

.mt-86 {
  margin-top: 5.38rem;
}

.ml-88 {
  margin-left: 5.5rem;
}

.mt-88 {
  margin-top: 5.5rem;
}

.ml-90 {
  margin-left: 5.63rem;
}

.mt-90 {
  margin-top: 5.63rem;
}

.ml-92 {
  margin-left: 5.75rem;
}

.mt-92 {
  margin-top: 5.75rem;
}

.ml-94 {
  margin-left: 5.88rem;
}

.mt-94 {
  margin-top: 5.88rem;
}

.ml-96 {
  margin-left: 6rem;
}

.mt-96 {
  margin-top: 6rem;
}

.ml-98 {
  margin-left: 6.13rem;
}

.mt-98 {
  margin-top: 6.13rem;
}

.ml-100 {
  margin-left: 6.25rem;
}

.mt-100 {
  margin-top: 6.25rem;
}
</style>
